package ameen.ui.tasklist;

import java.util.Vector;

import ameen.rtm.coffeemilk.RtmTaskListModel;
import ameen.rtm.lib.types.TasksVector;
import ameen.rtm.lib.types.RtmList;
import ameen.rtm.lib.types.RtmTask;

public class DummyTaskList extends RtmTaskListModel {
	private Vector<RtmList> listVector = new Vector<RtmList>();
	private TasksVector entry1Vector = new TasksVector();
	private TasksVector entry2Vector = new TasksVector();
	private TasksVector entry3Vector = new TasksVector();

	public DummyTaskList() {
		RtmTask task = new RtmTask("1", "Entry1.1");
		task.setPriority("1");
		entry1Vector.add(task);
		
		task = new RtmTask("2", "Entry1.2");
		task.setPriority("2");
		entry1Vector.add(task);
		
		task = new RtmTask("3", "Entry1.3");
		task.setPriority("3");
		entry1Vector.add(task);
		
		entry2Vector.add(new RtmTask("7", "Entry2.1"));
		entry2Vector.add(new RtmTask("8", "Entry2.2"));
		entry2Vector.add(new RtmTask("9", "Entry2.3"));

		entry3Vector.add(new RtmTask("10", "Entry3.1"));
		entry3Vector.add(new RtmTask("11", "Entry3.2"));
		entry3Vector.add(new RtmTask("12", "Entry3.3"));

		listVector.add(new RtmList("1", "Entry1", entry1Vector));
		listVector.add(new RtmList("2", "Entry2", entry1Vector));
		listVector.add(new RtmList("3", "Entry3", entry1Vector));
		
	}

	public Vector<RtmList> getLists() {
		return listVector;
	}

	public TasksVector getTasks(RtmList list) {
		if(list.getName().equals("Entry1")) return entry1Vector;
		if(list.getName().equals("Entry2")) return entry2Vector;
		if(list.getName().equals("Entry3")) return entry3Vector;
		throw new UnsupportedOperationException();
	}

}
